package ch.uzh.ifi.sonar.views;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;

import ch.uzh.ifi.sonar.shells.SonarDashboard;

public class DashboardView extends ViewPart {

	public static final String ID = "ch.uzh.ifi.DashboardView";
	
	SonarDashboard instance = null;
	
	@Override
	public void createPartControl(Composite parent) {
		instance = new SonarDashboard(parent);

	}

	@Override
	public void setFocus() {		
		instance.setFocus();
	}
	
	public void dispose() {
		instance.dispose();
		instance = null;
		super.dispose();
	}

}
